package chapter_03.list_stack_queue;

import java.util.Iterator;

/**
 * @author lianmingzhang
 * @create 2017-07-17 下午8:31
 */
public class ListStackQueueTest {
    @org.junit.jupiter.api.Test
    public void TestMyArrayList() {
        MyArrayList<Integer> myArrayList = new MyArrayList<>();
        myArrayList.add(1);
        myArrayList.add(2);
        myArrayList.add(3);
        myArrayList.add(4);
        myArrayList.add(5);

       Iterator<Integer> iterator = myArrayList.iterator();
        while (iterator.hasNext()) {
            Integer next = iterator.next();
            System.out.println(next);
        }

    }

    @org.junit.jupiter.api.Test
    public void testMyLinkedList() {
        MyLinkedList<Object> list = new MyLinkedList<>();
        list.add(1);
    }

}
